package com.ocl.www.service;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ocl.www.config.TargetDataSource;
import com.ocl.www.domain.Category;
import com.ocl.www.mapper.CategoryMapper;

@Service
public class CategoryService {

	
	@Autowired
	private CategoryMapper categoryMapper ;
	
	/**
	 * 
	 * @Title: CategoryService
	 * @Description: 查询兴趣分类信息
	 * @param: @param haboy
	 * @param: @return
	 * @param: @throws Exception
	 * @return: Category
	 * @throws
	 */
	public List<Category> selectCategoryInfo(){
		
		try {
			return categoryMapper.selectCategoryInfo();
		} catch (Exception e) {
			throw new RuntimeException(e.getMessage());
		}
		
	}
}
